import { creatMoveTags } from "./list";
import { getMovies } from "@/api/movie";
import { createPagers } from "./pager";

async function init () {
    const { data } = await getMovies(1, 30);
    creatMoveTags(data.movieList); // 创建列表
    createPagers(1, 30, data.movieTotal); // 创建分页
}

init();